﻿<%@ Page Language="C#" AutoEventWireup="true" Inherits="WebSys.UI.SysManage.SqlCmd" %>

<%@ Register Assembly="Antu.WebControls" Namespace="Antu.WebControls" TagPrefix="CBW" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>SQL操作</title>
</head>
<body>
    <form id="form1" runat="server">
        <table cellpadding="0" cellspacing="0" width="100%" align="center" style="border: 2px solid #ccc; margin-top: 50px">
            <tr bgcolor="#BAC9B5">
                <td height="40px" width="40px" style="width: 600px">
                    <span style="font-size: 16px; font-weight: bold; float: left">&nbsp;SqlCmd操作</span>
                </td>
            </tr>
            <tr>
                <td valign="top" align="center">
                    <table style="width: 100%; border: 1px solid #ccc;" cellpadding="0" cellspacing="0">
                        <tr>
                            <td height="25px" style="border: 1px solid #ccc; text-align: left;  width:80%">
                                SQL语句：<br/><asp:TextBox ID="sqltext" runat="server" TextMode="MultiLine" Style="height: 50px; width: 95%"></asp:TextBox><br/>
                                数据库连接字符串：<br/><asp:TextBox ID="connstr" runat="server" Style="height: 20px; width: 95%" Text="User ID=;Password=;Data Source="></asp:TextBox>
                            </td>
                            <td height="25px" style="border: 1px solid #ccc; text-align:center; width:20%;">
                                <asp:Button ID="runsql" runat="server" Text="执行" />
                                <asp:Button ID="importdata" runat="server" Text="导出" />
                                <input id="Button2" type="button" value="刷新"  onclick="location.href=location.href"/>
                                <input id="Button1" type="button" value="日志"  onclick="window.open('LoggerList.aspx')"/>
                            </td>
                        </tr>
                        <tr>
                            <td height="25px" style="border: 1px solid #ccc;" colspan="2">
                                <asp:GridView ID="SqlGridView" runat="server"   Width="100%"></asp:GridView>
                            </td>
                        </tr>
                        
                    </table>
                </td>
            </tr>
        </table>
    </form>
</body>
</html>
